#!/usr/bin/env python3

def isYear(year):
    return 1 if year % 400 == 0 or year % 4 == 0 and year % 100 != 0 else 0

def countMonthDays(month, year):
        l = [
                [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
                [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
            ]

        month -= 1
        days = 0
        y = isYear(year)

        while month > 0:
            month -= 1
            days += l[y][month]

        return days;



l = list()
print(l)

l = [1, 2, 3, 4, 5]
print(l)

l = [True, 122, 3456.6778, "hello"]
print(l)


print(list(range(1, 11)))

print("list + : ", [1, 2, 3] + [4, 5, 6])
print("list * : ", ['#'] * 4)
print("list * : ", [11, 22] * 4)

s = "http://www.baidu.com"

print(s.split('.'))

l = list(s)
print(l)

print('.'.join(['a', 'b', 'd']))

s = str([2, 3, 4, 5, 6])
print(s)

l = [1, 2, [3, 4, 5, [7, 8, 9]]]



